<?php
/**
 * Created By PhpStorm.
 * User: RenJianHong
 * Date: 2021-08-03 14:32
 */

namespace Modules\Mallsetting\Entities;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Schema;

class MallSetting extends BaseModel
{
    protected $table = "mall_setting";
    protected $guarded = [];

    /**
     * 设置是否显示在线客服数组值
     * @return string[]
     */
    public static function getIsServiceArr()
    {
        return [
            0 => "关闭",
            1 => "开启",
        ];
    }

    /**
     * 设置一键拨号数组值
     * @return string[]
     */
    public static function getDialArr()
    {
        return [
            0 => "关闭",
            1 => "开启",
        ];
    }

    /**
     * 设置发货方式数组值
     * @return string[]
     */
    public static function getSendTypeArr()
    {
        return [
            0 => "快递或自提",
            1 => "仅快递",
            2 => "仅自提",
        ];
    }

    /**
     * 设置分类页面数组值
     * @return string[]
     */
    public static function getCatStyleArr()
    {
        return [
            1 => "大图模式（不显示侧栏）",
            2 => "大图模式（显示侧栏）",
            3 => "小图标模式（不显示侧栏）",
            4 => "小图标模式（显示侧栏）",
            5 => "商品列表模式",
        ];
    }

    /**
     * 设置分类页面分隔符数组值
     * @return string[]
     */
    public static function getCutThreadArr()
    {
        return [
            0 => "关闭",
            1 => "开启",
        ];
    }

    /**
     * 设置首页购买记录显示数组值
     * @return string[]
     */
    public static function getPurchaseFrameArr()
    {
        return [
            0 => "关闭",
            1 => "开启",
        ];
    }

    /**
     * 设置是否开启推荐商品数组值
     * @return string[]
     */
    public static function getIsRecommendArr()
    {
        return [
            0 => "关闭",
            1 => "开启",
        ];
    }
    
    /**
     * 设置是否开启领劵中心数组值
     * @return string[]
     */
    public static function getIsCouponArr()
    {
        return [
            0 => "关闭",
            1 => "开启",
        ];
    }
    
    /**
     * 设置首页导航栏一行显示个数数组值
     * @return string[]
     */
    public static function getNavCountArr()
    {
        return [
            0 => "开启4个",
            1 => "开启5个",
        ];
    }
    
}